package top.eggcode.system.modules.log.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import top.eggcode.common.base.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Title:
 * Description: TODO
 * Date: 2021/5/28 17:02
 *
 * @author JiaQi Ding
 * @version 1.0
 */
@Data
@Table(name = "log_func")
@Entity
public class FuncLogEntity extends BaseEntity {

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("业务模块名称")
    private String module;

    @ApiModelProperty("方法路径")
    private String path;

    @ApiModelProperty("用时")
    private Long timeSpent;

    @ApiModelProperty("参数")
    @Column(columnDefinition = "LONGTEXT")
    private String params;

    @ApiModelProperty("返回值")
    @Column(columnDefinition = "LONGTEXT")
    private String result;

}
